import java.io.IOException;

import org.apache.xmlbeans.XmlException;

import noNamespace.NoteDocument;


public class Principal {

	public static void main (String args[]){
		NoteDocument notaDocument = null;
		
		String xml = "<?xml version='1.0' encoding='ISO-8859-1'?>"+
"<note>" +
"<to destino='otra persona'>Tove</to>"+
"<from>Jani</from>"+
"<heading>Reminder</heading>"+
"<body>Don't forget me this weekend!</body>"+
"<cc>amigo@amigo.gov</cc>"+
"</note>";
		
		try
	    {
			notaDocument  = NoteDocument.Factory.parse(xml);
			System.out.println (notaDocument.getNote().getBody());
	    } catch (XmlException e)
	    {
	        e.printStackTrace();
	    }
	}
	
}
